<%@page contentType="text/html; charset=utf-8" %>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>事件跟踪</title>
<%@ include file="/commons/commonList.jsp"%>
<script type="text/javascript">
	function openDetail(keyword){
		var urlOther= "${ctx}/customerService_trackRecordAction.do?method=initDetail&keyword=" + keyword;
		top.windowOpen(urlOther, "trackRecordAdd", "事件跟踪详细", 320, 590,true,"trackRecordAddFrame");
	}
	function init(){
		frameObj = parent.window.document.all('signReadingFrame');
		document.getElementById("divId").style.height = "290px"
		frameObj.height=document.getElementById("divId").scrollHeight+10;
	}
</script>

</head>

<body onload="init();">
  <div style="height:310px;overflow:auto;" id="divId">
  	  <ec:ceTable items="trackRecords"
		action="${ctx}/customerService_trackRecordAction.do?method=initList&customerServiceEventID=${eventID}"
		var="trackRecordItem"
		view="pmsview"
		styleClass="gridData2"
		rowsDisplayed="10" >
		<ec:ceRow styleClass="grid" ondblclick="openDetail('${trackRecordItem.keyword}');">
			<ec:ceColumn headerCell="pmsHeadrCell" title="事件编号" property="eventNo" sortable="false" width="14%" />
			<ec:ceColumn headerCell="pmsHeadrCell" title="详细地点" property="fullAddress" sortable="false" width="7%"/>
			<ec:ceColumn headerCell="pmsHeadrCell" title="房 号" property="houseNumber" sortable="false" width="6%" />
			<ec:ceColumn headerCell="pmsHeadrCell" title="联系人" property="client" sortable="false" width="8%" />
			<ec:ceColumn headerCell="pmsHeadrCell" title="事件跟踪描述" property="remark" sortable="false" width="8%" />
			<ec:ceColumn headerCell="pmsHeadrCell" title="跟踪人" property="recorder" sortable="false" width="8%" />
			<ec:ceColumn headerCell="pmsHeadrCell" title="事件跟踪状态" property="validity" sortable="false" width="8%">
				<c:choose>
					<c:when test="${trackRecordItem.validity == '1'}">有效</c:when>
					<c:when test="${trackRecordItem.validity == '0'}">作废</c:when>
						</c:choose>
					</ec:ceColumn>
					<ec:ceColumn headerCell="pmsHeadrCell" title="日期" property="recordTime" sortable="false" width="15%" />
				</ec:ceRow>
			</ec:ceTable>
</div>
</body>
</html>